package boot

import (
	"context"

	"system-admin/config"
	"system-admin/config/redis"
	"system-admin/internal/define"

	"192.168.1.75/go-pkg/logx"
	"192.168.1.75/go-pkg/svsdis"
)

// SvsDisInit 服务发现初始化
func SvsDisInit() {
	svsdis.SvsDisInit(redis.NewDB(), define.MicoServiceKeyPrefix, config.Config.LocalServices)
	logx.Info(context.Background(), "SvsDisInit", logx.Any("services", config.Config.Services))
	svsdis.RegisterService(config.Config.Services)
}
